{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.0.2/css/bootstrap.css" rel="stylesheet">
    <script type="text/javascript"
            src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.0.2/js/bootstrap.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.10.0/jquery.js"></script>
    <script type="text/javascript" src="{% static 'js/login.js' %}"></script>
</head>
<body>
<form class="form-horizontal" action="{% url 'myapp:login' %}" method="post">
    {% csrf_token %}
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">用户名</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="exampleInputName2" placeholder="请输入用户名" name="user_name">
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
        <div class="col-sm-10">
            <input type="password" class="form-control" id="inputPassword3" placeholder="请输入密码" name="pwd">
        </div>
    </div>
    <div class="form-group">
        <label for="aaa" class="col-sm-2 control-label"></label>
        <div class="col-xs-2">
            <input type="text" class="form-control" id="code" placeholder="请输入验证码" name="u_code">
        </div>
        <img src="{% url 'myapp:code' %}" class="img-responsive">
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">登 陆</button>
        </div>
    </div>
</form>
</body>
</html>